package com.spa.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@TableName("s_shop_user")
public class ShopUserPO {

    @TableId
    private Long id;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "owner_phone")
    private String ownerPhone;

    @TableField(value = "is_del")
    private Integer isDel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "shop_id")
    private Long shopId;

    @TableField(exist = false)
    private String shopName;

    @TableField(value = "name")
    private String name;

    /**
     * 0是负责人，1不是负责人
     *
     * @author: lig
     * @date: 2024/3/18
     */
    @TableField(value = "is_principal")
    private Integer isPrincipal;

}
